class CreateRescues < ActiveRecord::Migration
  def change
    create_table :rescues do |t|

      t.references :user, comment: '关联用户'
      t.string :type, comment: '救援类型'
      t.text :content, comment: '救援内容'
      t.float :lat, comment: '纬度'
      t.float :lnt, comment: '经度'

      t.timestamps null: false
    end
  end
end
